export default {
  created() {
    if (this.item && this.item.vdRequired !== undefined) {
      var label = this.item.getLabel();
      this.$emit("componentNotify", "addRule", {
        field: this.item.name,
        rules: [
          { required: true, message: "请填写" + label },
        ]
      });
    }
  }
};
